package cn.com.spic.demo.service;

import cn.com.spic.demo.dao.ProgressReportDAO;
import cn.com.spic.demo.po.ProgressReportPO;
import com.yonyou.iuap.baseservice.intg.support.ServiceFeature;
import com.yonyou.iuap.baseservice.service.GenericAssoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import static com.yonyou.iuap.baseservice.intg.support.ServiceFeature.I18N_ENUM;
import static com.yonyou.iuap.baseservice.intg.support.ServiceFeature.AUDIT;

@Service
public class ProgressService extends GenericAssoService<ProgressReportPO, String> {

    @Autowired
    private ProgressReportDAO progressReportDAO;


    @Autowired
    public void setActionProDAO(ProgressReportDAO progressReportDAO) {
        this.progressReportDAO = progressReportDAO;
        super.setGenericMapper(progressReportDAO);
    }

    @Override
    protected ServiceFeature[] getFeats() {
        return new ServiceFeature[]{AUDIT, I18N_ENUM};
    }
}
